package com.soup.faker.wrapper;

import com.soup.faker.api.Generator;

/**
 * Null生成器
 * 每次都会返回Null
 */
public final class NullGenerator implements Generator {

    private static NullGenerator INSTANCE = new NullGenerator();

    private NullGenerator() {}

    @Override
    public Object get() {
        return null;
    }

    public static <T> Generator<T> getInstance() {
        return INSTANCE;
    }

}
